import http from '../request';
const apibase = '/api/WorkShopType';
import qs from 'qs';
//获取订单信息
var GetWorkShopTypesAll = function (data) {
  const datas = qs.stringify (data);
  return new Promise ((resolve, reject) => {
    http
      .get (apibase + `/GetWorkShopTypesAll?${datas}`)
      .then (res => {
        resolve (res);
      })
      .catch (error => {
        reject (error);
      });
  });
};
//获取订单信息
var GetWorkShopTypes = function (data) {
  const datas = qs.stringify (data);
  return new Promise ((resolve, reject) => {
    http
      .get (apibase + `/GetWorkShopTypes?${datas}`)
      .then (res => {
        resolve (res);
      })
      .catch (error => {
        reject (error);
      });
  });
};
export {GetWorkShopTypesAll, GetWorkShopTypes};
